/*
 * ButtonMapper.java
 *
 * Copyright 2012 the original author or authors(ninglong).
 *
 * Licensed under the web-geek, Version 1.0 (the "License");
 *
 */
package org.geek.core.mybatis.mapper;

import java.util.List;

import org.geek.core.annotation.MyBatisUtil;
import org.geek.core.mybatis.domain.Button;
import org.geek.core.mybatis.domain.Criteria;

/**
 * <p></p>
 * @author ninglong bhd2973@qq.com
 * @version V1.0
 */
@MyBatisUtil
public interface ButtonMapper {
	
	int countButtonByCriteria(Criteria criteria);

	List<Button> getButtonByCriteria(Criteria criteria);
	
	int modButton(Button button);
	
	int addButton(Button button);
	
	int delButtonByButtonId(int buttonId);
	
	List<Button> getButtonByAuth(Criteria criteria);
}
